﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MuLinksList.Aspx.cs" Inherits="Users_MuLinksList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="skm" Namespace="ActionlessForm" Assembly="ActionlessForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%=this.UI_Head(Base_CurrPath, "", "")%>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <script src="../Script/popup.js" type="text/javascript"></script>
</head>
<body>
       <%=this.UI_TopControl()%>
       
        <div class="topbanner bodyList">
        <div class="body_995">
            <div class="Member_left">
                <%=this.UI_Users_loginOK()%>
                <%=this.UI_NetMuMangerNav(id)%>
            </div>
            <div class="Member_Right">
         <skm:Form id="memorial_Form" method="post" runat="server">
 
     <%-- <Form id="memorial_Form" method="post" runat="server">--%>
                <div class="Member_right_dht">
                    <img src="../Images/class_wsgm.jpg" width="745" /></div>
                <div class="Member_right_CntLIst">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center"><strong>友情链接管理</strong></td>
              </tr>
            </table>
            
             <webdiyer:AspNetPager ID="AspNetPager2" runat="server" CloneFrom="AspNetPager1" >
                    </webdiyer:AspNetPager>            
            
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id"  
                        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                        CellPadding="4" Width="100%" ForeColor="Black" GridLines="Vertical" 
                        onrowediting="GridView1_RowEditing" 
                        onrowcancelingedit="GridView1_RowCancelingEdit" 
                        onrowupdating="GridView1_RowUpdating" 
                        onrowdeleting="GridView1_RowDeleting">
                        <RowStyle BackColor="#F7F7DE" />
                        <Columns>
                            <asp:TemplateField HeaderText="名称">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <EditItemTemplate>
                                    <asp:TextBox ID="Txt_SiteName" MaxLength="90" Text='<%#Eval("SiteName") %>' runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <%#Eval("SiteName") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="链接地址">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                  <EditItemTemplate>
                                      <asp:TextBox ID="Txt_SiteUrl" MaxLength="90" Text='<%#Eval("SiteUrl") %>' runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                  <ItemTemplate>
                                    <a href="<%#Eval("SiteUrl") %>" target="_blank" ><%#Eval("SiteUrl") %></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="排序">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <EditItemTemplate>
                                    <asp:TextBox  ID="Txt_Orders" MaxLength="8" Text='<%#Eval("Orders") %>' runat="server" Width="54px"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <%#Eval("Orders") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="添加时间">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <EditItemTemplate>
                                    <asp:TextBox  ID="Txt_Readme" MaxLength="200" Text='<%#Eval("SiteIntro") %>' runat="server" Height="102px" TextMode="MultiLine" 
                                        Width="274px"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <%#Eval("Addtime","{0:yyyy-MM-dd HH:mm}") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                                        CommandName="Update" Text="更新"></asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                        CommandName="Cancel" Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                        CommandName="Edit" Text="编辑"></asp:LinkButton>
                                    &nbsp;<a href="javascript:wy_addPhotoCat('AddUserLink.Aspx?ChannelId=<%=AspNetCs.Enumerations.Channel_Enum.Channel_Type.gravestone.ToString()%>&Types=<%=id%>&Rurl=<%=Server.UrlEncode("MuLinksList_"+id+".Aspx") %>','友情链接添加',600,280);">新建</a>
                                    &nbsp;<asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" 
                                        CommandName="Delete" Text="删除" OnClientClick="javascript:return confirm('是否真的删除?')" ></asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#CCCC99" />
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                       <EmptyDataTemplate>
                           <center>当前暂无友情链接,<a href="javascript:wy_addPhotoCat('AddUserLink.Aspx?ChannelId=<%=AspNetCs.Enumerations.Channel_Enum.Channel_Type.gravestone.ToString()%>&Types=<%=id%>&Rurl=<%=Server.UrlEncode("MuLinksList_"+id+".Aspx") %>','友情链接添加',600,280);" >您现在可以立即添加</a></center>
                       </EmptyDataTemplate>
                    </asp:GridView>                     
             <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                        CurrentPageButtonPosition="Beginning" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                        LayoutType="Table" NumericButtonTextFormatString="[{0}]" PageIndexBoxType="DropDownList"
                        PageSize="15" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                        TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" FirstPageText="首页" 
                        LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>           
                    
                </div>
           </skm:Form>
             <%--  </Form>--%>
            </div>
        </div>
        <br />
    </div>
       
    <%=UI_boot() %>
</body>
</html>
